<?php

require_once '../data/connect.class.php';
$connect = new Connect("localhost","root","","email");
$param = $_POST['param'];
if (isset($param)) {
	if ($param=='bill') {
		echo '导入订单用户：<br/>';
	}elseif ($param=='login') {
		echo '导入一个月内登陆过用户：<br/>';
	}elseif ($param=='all') {
		echo '导入一般用户：<br/>';
	}
?>
<div id="uploadInfo"></div>
<img id="loading" src="../images/loading.gif" style="display:none;">
<form enctype="multipart/form-data" action="" method="POST" name="form">
<label for="file">文件名：</label>
<input type="file" name="fileToUpload" id="fileToUpload" value=""/> 
<br />
<button id="buttonUpload" onclick="return  ajaxFileUpload('<?php echo $param;?>');">上传</button>

</form>
<div style="font-style: italic;font-size:12px;">注：数据文件格式为：{名字},{邮件地址},{是否订阅}。 e.g.:"1, test@test.com,1"。其中是否订阅可选。</div>
<?php }?>

